/*
 * @Author: cgl
 * @Date: 2023-04-17 11:09:53
 * @LastEditors: cgl
 * @LastEditTime: 2023-04-24 15:44:25
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\equipment\calibration.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询设备校准列表
export function equipmentCalibrationList(params) {
  return request({
    url: '/basic/equipment/calibration/list',
    method: 'get',
    params,
  })
}
// 导出设备校准列表
export function equipmentCalibrationExport(data) {
  return request({
    url: `/basic/equipment/calibration/export`,
    method: "post",
    data,
  });
}
// 获取设备校准详细信息
export function equipmentCalibrationDetail(calibrationId) {
  return request({
    url: '/basic/equipment/calibration/getInfo/' + calibrationId,
    method: 'get'
  })
}
// 申请校准
export function equipmentCalibrationAdd(data) {
  return request({
    url: `/basic/equipment/calibration/add`,
    method: "post",
    data,
  });
}
// 修改设备校准
export function equipmentCalibrationEdit(data) {
  return request({
    url: '/basic/equipment/calibration/edit',
    method: 'post',
    data,
  })
}
// 删除设备校准
export function equipmentCalibrationDelete(calibrationIds) {
  return request({
    url: '/basic/equipment/calibration/remove/' + calibrationIds,
    method: 'get'
  })
}